//
//  Const.swift
//  ----meilishuo
//
//  Created by wkywangking on 2017/3/2.
//  Copyright © 2017年 wkywangking. All rights reserved.
//

import UIKit

// 每页的个数
let countPerPage = 40
    
//let urlString = "http://apiv2.yangkeduo.com/operation/15/groups?opt_type=1&size=50&offset=0"

// 动态改变请求
let urlString: (Int) -> (String) = { (page: Int)->(String) in
    "http://apiv2.yangkeduo.com/operation/15/groups?opt_type=1&size=\(countPerPage)&offset=\(countPerPage * (page - 1))"
}

//let urlString: (Int) -> (String) = {
//    "http://apiv2.yangkeduo.com/operation/15/groups?opt_type=1&size=\(countPerPage)&offset=\(countPerPage * ($0 - 1))"
//}
